﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vEntityCredit
	/// </summary>
	[Serializable]
	public class vEntityCredit : Entity 
	{ 
		 public vEntityCredit() 
            : base("vEntityCredit") 
        { 

        }


		#region Model
		private int _UID;
		private int? _EntityID;
		private string _Short;
		private string _Code;
		private string _DeptCode1;
		private string _DeptName1;
		private string _FeeType;
		private int? _InsteadDays;
		private string _InsteadAmount;
		private int? _UserCreateID;
		private string _UserCreate;
		private string _CreateDate;
		private int? _UserModifyID;
		private string _UserModify;
		private string _ModifyDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? EntityID
		{
			get{ return _EntityID; }
			set
			{
				this.OnPropertyValueChange(_.EntityID,_EntityID,value);
				this._EntityID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Short
		{
			get{ return _Short; }
			set
			{
				this.OnPropertyValueChange(_.Short,_Short,value);
				this._Short = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Code
		{
			get{ return _Code; }
			set
			{
				this.OnPropertyValueChange(_.Code,_Code,value);
				this._Code = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptCode1
		{
			get{ return _DeptCode1; }
			set
			{
				this.OnPropertyValueChange(_.DeptCode1,_DeptCode1,value);
				this._DeptCode1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string DeptName1
		{
			get{ return _DeptName1; }
			set
			{
				this.OnPropertyValueChange(_.DeptName1,_DeptName1,value);
				this._DeptName1 = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FeeType
		{
			get{ return _FeeType; }
			set
			{
				this.OnPropertyValueChange(_.FeeType,_FeeType,value);
				this._FeeType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? InsteadDays
		{
			get{ return _InsteadDays; }
			set
			{
				this.OnPropertyValueChange(_.InsteadDays,_InsteadDays,value);
				this._InsteadDays = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string InsteadAmount
		{
			get{ return _InsteadAmount; }
			set
			{
				this.OnPropertyValueChange(_.InsteadAmount,_InsteadAmount,value);
				this._InsteadAmount = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCreate
		{
			get{ return _UserCreate; }
			set
			{
				this.OnPropertyValueChange(_.UserCreate,_UserCreate,value);
				this._UserCreate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserModifyID
		{
			get{ return _UserModifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserModifyID,_UserModifyID,value);
				this._UserModifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserModify
		{
			get{ return _UserModify; }
			set
			{
				this.OnPropertyValueChange(_.UserModify,_UserModify,value);
				this._UserModify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.EntityID,
				_.Short,
				_.Code,
				_.DeptCode1,
				_.DeptName1,
				_.FeeType,
				_.InsteadDays,
				_.InsteadAmount,
				_.UserCreateID,
				_.UserCreate,
				_.CreateDate,
				_.UserModifyID,
				_.UserModify,
				_.ModifyDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_EntityID,
				_Short,
				_Code,
				_DeptCode1,
				_DeptName1,
				_FeeType,
				_InsteadDays,
				_InsteadAmount,
				_UserCreateID,
				_UserCreate,
				_CreateDate,
				_UserModifyID,
				_UserModify,
				_ModifyDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "EntityID":
                    this._EntityID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "Short":
                    this._Short = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Code":
                    this._Code = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptCode1":
                    this._DeptCode1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "DeptName1":
                    this._DeptName1 = DataHelper.ConvertValue<string>(value);
                    break; 
				case "FeeType":
                    this._FeeType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "InsteadDays":
                    this._InsteadDays = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "InsteadAmount":
                    this._InsteadAmount = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserCreate":
                    this._UserCreate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserModifyID":
                    this._UserModifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserModify":
                    this._UserModify = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "EntityID":
                    return this._EntityID; 
				case "Short":
                    return this._Short; 
				case "Code":
                    return this._Code; 
				case "DeptCode1":
                    return this._DeptCode1; 
				case "DeptName1":
                    return this._DeptName1; 
				case "FeeType":
                    return this._FeeType; 
				case "InsteadDays":
                    return this._InsteadDays; 
				case "InsteadAmount":
                    return this._InsteadAmount; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "UserCreate":
                    return this._UserCreate; 
				case "CreateDate":
                    return this._CreateDate; 
				case "UserModifyID":
                    return this._UserModifyID; 
				case "UserModify":
                    return this._UserModify; 
				case "ModifyDate":
                    return this._ModifyDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vEntityCredit");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","vEntityCredit","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field EntityID = new Field("EntityID","vEntityCredit","EntityID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Short = new Field("Short","vEntityCredit","Short");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Code = new Field("Code","vEntityCredit","Code");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptCode1 = new Field("DeptCode1","vEntityCredit","DeptCode1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field DeptName1 = new Field("DeptName1","vEntityCredit","DeptName1");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FeeType = new Field("FeeType","vEntityCredit","FeeType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InsteadDays = new Field("InsteadDays","vEntityCredit","InsteadDays");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field InsteadAmount = new Field("InsteadAmount","vEntityCredit","InsteadAmount");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","vEntityCredit","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreate = new Field("UserCreate","vEntityCredit","UserCreate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","vEntityCredit","CreateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModifyID = new Field("UserModifyID","vEntityCredit","UserModifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModify = new Field("UserModify","vEntityCredit","UserModify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","vEntityCredit","ModifyDate");
		}
		#endregion

 
	}
}

